﻿using System;
using kunukn.RecommendationEngine.AreaRecommendation.Code.Engine;


namespace kunukn.RecommendationEngineConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] a = new int[] { 0, 1, 1, 0 };
            int[] b = new int[] { 1, 0, 2, 0 };
            int[] c = new int[] { 1, 2, 0, 0 };
            int[] d = new int[] { 0, 0, 0, 0 };

            
            Console.WriteLine("a,b {0}", MathUtil.CosineSimilarity(a, b));
            Console.WriteLine("a,c {0}", MathUtil.CosineSimilarity(a, c));
            Console.WriteLine("a,d {0}", MathUtil.CosineSimilarity(a, d));            


            Console.WriteLine("Press a key to exit .."); Console.ReadKey();
        }
    }
}
